{include file="common/header.tpl"}
<section class="main">	
    <article class="right-col">
    	<h2><a href="{$back}">{$language.title.image}</a> &raquo; {$language.ahref.edit}</h2>
        <form name="frmEdit" id="frmEdit" method="post" enctype="multipart/form-data" action="{$smarty.const.HOST_BACKEND}image/saveedit" class="ui">
            <input type="hidden"  name="id" id="id" value="{$row->id}"/>
            <input type="hidden"  name="clubid" id="clubid" value="{$row->clubid}"/>
            <input type="hidden"  name="srcid" id="srcid" value="{$row->srcid}"/>
            <input type="hidden"  name="type" id="type" value="{$row->type}"/>        	
            <ul>
            	{if isset($smarty.session.IMAGE_ERROR)}
                	<li class="error">
                    	{include file="common/error.tpl" errors=$smarty.session.IMAGE_ERROR}
                    </li>
                {/if}                                      
                <li>
                	<label for="name">{$language.label.name}:</label>
                    <div class="txt">
	                	<input type="text" class="text" name="name" id="name" value="{$row->name}" autocomplete="false"/>
                	</div>
                </li>                          
                
                
                <li>
                	<label for="sshort">{$language.label.short}:</label>
                    <div class="txt">
                        <input type="text" class="text" name="sshort" id="sshort" value="{$row->short}"/>	                	
                	</div>
                </li>
                <li>
                	<label for="description">{$language.label.description}:</label>
                    <div class="area">
                        <textarea cols="50" rows="4" name="description" id="description">{$row->description}</textarea>	                	
                	</div>
                </li>
                
                <li>
                	<label for="file">{$language.label.file}:</label>
                    <div class="txt">
	                	<input type="file" class="file" name="file" id="file" value=""/>
                	</div>
                </li>                 
                <li>
                	<label for="tag">{$language.label.tag}:</label>
                    <div class="txt">
	                	<input type="text" class="text" name="tag" id="tag" value="{$row->tag}" autocomplete="false" />
                	</div>
                </li>                             
                <li>
                 	<button type="submit"><strong>{$language.btn.save}</strong></button>
                    <button type="button" class="cancel" onclick="javascript:document.location.href='{$back}'"><strong>{$language.btn.cancel}</strong></button>
                </li>
            </ul>
        </form>        
    </article> 
</section>
{include file="common/footer.tpl"}
                
